From: Emmanuele Bassi Date: Sun, 11 Feb 2018 15:02:30 +0000 (+0000) Subject: deprecated: Cast g_object_ref() to the right type X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~38^2~19 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=855e4cb88ed98f651b26b1e71518979e6fd18eb3;p=gtk%2B3.0.git deprecated: Cast g_object_ref() to the right type In GLib 2.56, g_object_ref() will check that you're assigning the return value to a variable of the same type you're passing in. --- diff --git a/gtk/deprecated/gtkuimanager.c b/gtk/deprecated/gtkuimanager.c index a0b4129376..6ee242dd5c 100644 --- a/gtk/deprecated/gtkuimanager.c +++ b/gtk/deprecated/gtkuimanager.c @@ -740,7 +740,7 @@ gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable, g_signal_connect (widget, "hierarchy-changed", G_CALLBACK (child_hierarchy_changed_cb), GTK_UI_MANAGER (buildable)); - return g_object_ref (widget); + return G_OBJECT (g_object_ref (widget)); } static void